import React, { useEffect } from "react"
import { useState } from "react"
export function Test15() {
    const [count, setcount] = useState(0)
    useEffect(() => {
        document.title = `当前已点击了${count}次`
    })
    return (
        <div>
            <h1>15.hook-useEffect</h1>
            {count}
            <button onClick={() => setcount(count + 1)}>改变count</button>
        </div>
    )
}